/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */

//NS_LOG_COMPONENT_DEFINE ("LbtsMessage");

#include "lbts-message.h"
#include "ns3/simulator.h"
#include "ns3/scheduler.h"
#include "ns3/event-impl.h"
#include "ns3/channel.h"
#include "ns3/node-container.h"
#include "ns3/ptr.h"
#include "ns3/pointer.h"
#include "ns3/assert.h"
#include "ns3/log.h"

#include <math.h>

namespace ns3 {

//NS_OBJECT_ENSURE_REGISTERED (LbtsMessage);

LbtsMessage::LbtsMessage ()
  : m_txCount (0),
    m_rxCount (0),
    m_myId (0)
{
}

/**
 * \param rxc received count
 * \param txc transmitted count
 * \param id mpi rank
 * \param t smallest time
 */
LbtsMessage::LbtsMessage (uint32_t rxc, uint32_t txc, uint32_t id, const Time& t)
  : m_txCount (txc),
    m_rxCount (rxc),
    m_myId (id),
    m_smallestTime (t)
{
}

LbtsMessage::~LbtsMessage ()
{
}

Time
LbtsMessage::GetSmallestTime ()
{
  return m_smallestTime;
}

uint32_t
LbtsMessage::GetTxCount ()
{
  return m_txCount;
}

uint32_t
LbtsMessage::GetRxCount ()
{
  return m_rxCount;
}
uint32_t
LbtsMessage::GetMyId ()
{
  return m_myId;
}

} // namespace ns3
